<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:o="http://openfaces.org/">

    <ui:composition template="/template.xhtml">
        <ui:define name="body">
            <h:form>
                <h:outputText value="#{bundle.CreateSeatshowtimeTitle}" styleClass="titulo"></h:outputText>
                <br/>
                <h:panelGrid columns="3" styleClass="panel">
                    <h:outputLabel value="#{bundle.EditSeatshowtimeLabel_status}" for="status" />
                    <h:inputText id="status" value="#{seatshowtimeController.selected.status}"
                                 title="#{bundle.EditSeatshowtimeTitle_status}" 
                                 required="#{seatshowtimeController.campoNulo('status')}" 
                                 requiredMessage="#{bundle.EditSeatshowtimeRequiredMessage_status}"
                                 size="#{seatshowtimeController.longCampo('status')}"
                                 maxlength="#{seatshowtimeController.longCampo('status')}"/>
                    <h:message for="status" errorStyle="color: red" infoStyle="color: green"/>
                    <h:outputLabel value="#{bundle.EditSeatshowtimeLabel_showtime}" for="showtime" />
                    <h:selectOneMenu id="showtime" value="#{seatshowtimeController.selected.showtime}" title="#{bundle.EditSeatshowtimeTitle_showtime}" 
                                     required="true" requiredMessage="#{bundle.EditSeatshowtimeRequiredMessage_showtime}">                        <f:selectItems value="#{showtimeController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:message for="showtime" errorStyle="color: red" infoStyle="color: green"/>
                    <h:outputLabel value="#{bundle.EditSeatshowtimeLabel_seatcinema}" for="seatcinema" />
                    <h:selectOneMenu id="seatcinema" value="#{seatshowtimeController.selected.seatcinema}" title="#{bundle.EditSeatshowtimeTitle_seatcinema}" 
                                     required="true" requiredMessage="#{bundle.EditSeatshowtimeRequiredMessage_seatcinema}">                        <f:selectItems value="#{seatcinemaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:message for="seatcinema" errorStyle="color: red" infoStyle="color: green"/>
                </h:panelGrid>
                <br />
                <h:commandButton action="#{seatshowtimeController.create}" value="Aceptar"/>
                <h:commandButton action="#{seatshowtimeController.prepareList}" value="Cancelar" immediate="true"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
